<%@ page language="java" pageEncoding="utf-8" %>
<%@page import="java.util.ArrayList" %>
<%@page import="com.entity.GoodsEvaluate" %>
<%@page import="com.entity.GoodsType" %>
<%@page import="com.util.PublicToolShowDetailTypeList" %>
<%@page import="com.util.PublicToolGetTypeDetailInfo" %>
<%@page import="com.dao.GoodsTypeDetailInfoDAO" %>
<%@page import="com.entity.GoodsType" %>
<%@page import="com.entity.GoodsTypeDetail" %>
<%@page import="com.util.PublicToolCheckParam" %>
<%@page import="com.entity.SalesGoods" %>
<%@page import="com.util.PublicToolShowGooodsTypeList" %>
<%@page import="com.entity.BulletinInfo" %>

<%@page import="com.entity.GoodsInfo" %>
<%@page import="com.util.PublicToolIndexProductShow" %>
<%@page import="com.entity.GoodsTypeDetail" %>
<%@page import="com.entity.GoodsEvaluate" %>
<%@page import="com.util.PublicToolCheckParam" %>
<%@page import="com.entity.SalesGoods" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<%
    String email = (String) session.getAttribute("email");
    String thirdemail = (String) session.getAttribute("thirdemail");
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<base href="<%=basePath%>">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=7">
    <title>医生坐诊列表</title>
    <meta content="" name="keywords">
    <meta content="" name="description">
    <link href="css/common.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="./js/base.js"></script>
    <script type="text/javascript" src="js/menu.js"></script>
    <script type="text/javascript" src="js/time.js"></script>
    <script type="text/javascript" src="js/lb.js"></script>

    <script type="text/javascript">
        function checkLogin() {
            if ("<%=email%>" == "" || "<%=email%>" == "null") {
                alert("请先登陆!");
                return false;
            }
            else {
                top.location.href = "servlet/DoMethod?method=showMyInformation";
                return true;
            }
        }
        function checkUserLogin() {
            if ("<%=email%>" == "" || "<%=email%>" == "null") {
                alert("请先登陆!");
                return false;
            }
            else {
                top.location.href = "servlet/DoChatMethod?method=login";
                return true;
            }
        }
    </script>

    <!---reload-!-->
</head>
<body style="background:transparent url(images/bg.jpg) repeat scroll 0% 0%" onload="times()">
<div id="contain">

    <!-- 头 -->

    <jsp:include page="top.jsp" flush="true"/>


    <!-- 头 -->


    <!-- 第二部分内容 -->
    <div class="box" style=" margin-top:1px;   background: url(images/pbg.gif);">
        <div class="left">
            <jsp:include page="left.jsp" flush="true"/>

        </div>
        <div class="right">
            <div class="boxtitlebg mbnav"><a href="">首页</a> &gt; 专家医生列表</div>

            <!--内容-->
            <div style="padding:10px">

                <div id="newsquery">
                    <ul id="queryul">

                    <%

                    String isSearching = (String) request.getAttribute("isSearching");
                    ArrayList<GoodsInfo> goodsInfoList = (ArrayList<GoodsInfo>) request.getAttribute("goodsInfoList");
                    if (goodsInfoList == null || goodsInfoList.toString().equals("[]")) {
                        out.println("<td colspan='12' height='30'><div align='center'>当前无任何坐诊信息!</div></td>");
                    } else {


                        for (int i = 0; i < goodsInfoList.size(); i++) {
                            GoodsInfo gd = goodsInfoList.get(i);
                            String goodsName = gd.getGoodsName();
                            if (goodsName.length() > 19) {
                                goodsName = goodsName.substring(0, 18) + "...";
                            }
                            String createdate = gd.getCreatedate();
                            int countrequire = gd.getCountRequire();
                            String userid = gd.getUserid();




                %>
                        <li class="title">
                            <div class="title"><a href='servlet/ProductInfo?gid=<%=gd.getGoodsId()%>'><%=gd.getGoodsName()%> </a></div>
                            <div class="time"> </div>
                        </li>



                <%



                    }

                %>

                    </ul>
                </div>

                <div id="showpages">
                    <div id="pages">
                        <%     out.println("共有" + request.getAttribute("sumCount") + "条&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
                        out.println("第" + request.getAttribute("currentPage") + "/" + request.getAttribute("sumPageCount") + "页&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
                        %>       <ul>

                            <%
                                    out.println("<li class=\"pbutton\"><a href='servlet/typelist?cp=" + request.getAttribute("indexPage") + "&typeid=" + request.getAttribute("typeid") + "'>首页</a></li>");
                                    out.println("<li class=\"pbutton\"><a href='servlet/typelist?cp=" + request.getAttribute("upPage") + "&typeid=" + request.getAttribute("typeid") + "'>上一页</a></li>");
                                    out.println("<li class=\"pbutton\"><a href='servlet/typelist?cp=" + request.getAttribute("nextPage") + "&typeid=" + request.getAttribute("typeid") + "'>下一页</a></li>");
                                    out.println("<li class=\"pbutton\"><a href='servlet/typelist?cp=" + request.getAttribute("lastPage") + "&typeid=" + request.getAttribute("typeid") + "'>尾页</a></li>");

                                }
                            %>


                        </ul>
                    </div>
                </div>
            </div>
            <!--内容-->
        </div>
    </div>
    <!-- 第二部分内容 -->

    <!--底部-->

    <jsp:include page="bottom.jsp" flush="true"/>
</div>
</body>
</html>
